package wfm.bean;

import javax.inject.Named;
import javax.xml.bind.annotation.XmlRootElement;

@XmlRootElement
@Named
public class Ticket {
	
	private Customer customer;
	private String description;
	
	public Ticket(){
		
	}
	public Ticket(String firstName, String lastName, String street, String city, String zip, String country, String telNo, String mailAddress, String description)
	{
		this.customer = new Customer(firstName,lastName,new Address(street,city,zip,country),telNo,mailAddress);
		this.description = description;
	}
	
	public Ticket(Customer cust){
		this.customer=cust;
	}
	
	public Customer getCustomer() {
		return customer;
	}
	public void setCustomer(Customer customer) {
		this.customer = customer;
	}
	
	public String getDescription() {
		return description;
	}
	public void setDescription(String description) {
		this.description = description;
	}
	
}
